﻿using PCBase.UIControls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionCore
{
    public class PRM_LDTR_Rotation
    {
        [Category("TR参数"), DisplayName("01.LDTR取料点"), ReadOnly(true)]
        public double Exchange { get; set; } = 0;

        [Category("TR参数"), DisplayName("02.TR1位置参数"), Description("")]
        [TypeConverter(typeof(PropertiesExpandConverter))]
        public PRM_TR_Sub TR_1 { get; set; } = new PRM_TR_Sub();

        [Category("TR参数"), DisplayName("03.TR2位置参数"), Description("")]
        [TypeConverter(typeof(PropertiesExpandConverter))]
        public PRM_TR_Sub TR_2 { get; set; } = new PRM_TR_Sub();

        public override string ToString()
        {
            return "...";
        }
    }

    public class PRM_TR_Sub
    {
        [Category("TR_Z位置参数"), DisplayName("TR_Z位置参数"), Description("")]
        [TypeConverter(typeof(PropertiesExpandConverter))]
        public PRM_TR_Z Z { get; set; } = new PRM_TR_Z();

        [Category("TR_R位置参数"), DisplayName("TR_R位置参数"), Description("")]
        [TypeConverter(typeof(PropertiesExpandConverter))]
        public PRM_TR_R R { get; set; } = new PRM_TR_R();

        public override string ToString()
        {
            return "...";
        }

        public class PRM_TR_Z
        {
            [DisplayName("01.待命点"), ReadOnly(true)]
            public double Wait { get; set; } = 0;

            [DisplayName("02.取料点"), ReadOnly(true)]
            public double Get { get; set; } = 0;

            [DisplayName("03.放料点"), ReadOnly(true)]
            public double Put { get; set; } = 0;

            public override string ToString()
            {
                return "...";
            }
        }

        public class PRM_TR_R
        {
            [DisplayName("01.出料点-0度"), ReadOnly(true)]
            public double Out { get; set; } = 0;

            [DisplayName("02.入料点-0度"), ReadOnly(true)]
            public double In { get; set; } = 0;

            public override string ToString()
            {
                return "...";
            }
        }
    }




}
